package router

import (
	"github.com/gin-gonic/gin"
	"xy_api/app/http/login"
	"xy_api/app/middlewares"
)

func RegisterApiRoutes(router *gin.Engine) {
	v1 := router.Group("/api/v1/")
	userApi := v1.Group("user")
	{
		User := new(login.User)
		userApi.POST("login", User.Login) // account  login
		userApi.GET("info", middlewares.AuthJWT(), User.Info)
	}

}
